package com.andyliu.ex;

import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;

/**
 * @packageName: com.andyliu.ex
 * @user: andyliu
 * @date: 2021/8/25 16:26
 * @email 115176513@qq.com
 * @description: TODO
 */
@ControllerAdvice
public class ExceptionAdvice {

    @ExceptionHandler(value = Exception.class)
    public String ex(Exception ex){
        ex.printStackTrace();
        return null;
    }
}
